package com.newer.procurementsystem.service.impl;

import com.newer.procurementsystem.dao.DepartmentMapper;
import com.newer.procurementsystem.model.Department;
import com.newer.procurementsystem.model.DepartmentExample;
import com.newer.procurementsystem.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> selectByExample(DepartmentExample example) {
        return departmentMapper.selectByExample(example);
    }
}
